/**Copyright 2007 Ultrapower Software Co. Ltd.
 * All right reserved. 
 * @author zqmao
 * @version PASM 2.0
 *
 * 2008-8-27,下午01:48:02
 */
package com.osgix.common.pojo.temp;

import java.io.Serializable;

/**
 * 用户登录令牌对象
 * 2008-8-27,下午01:48:02
 *
 * @author zqmao
 * 
 * @version 2.0
 */
public class UserToken implements Serializable {

	/**
	 * 2008-8-27,下午01:54:07
	 * @author zqmao
	 * @version 2.0
	 *
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 用户账号
	 */
	String account = "";

	/**
	 * 登录IP
	 */
	String loginIp = "";

	/**
	 * 用户原始密码
	 */
	String barbarism = "";

	/**
	 * 令牌生成时间
	 */
	long exprieTime = 0;

	public UserToken() {

	}

	public UserToken(String account, String loginIp) {
		this(account, "", loginIp);
	}

	public UserToken(String account, String barbarism, String loginIp) {
		this(account, "", loginIp, System.currentTimeMillis());
	}

	public UserToken(String account, String barbarism, String loginIp, long time) {
		this.account = account;
		this.barbarism = barbarism;
		this.loginIp = loginIp;
		this.exprieTime = time;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getBarbarism() {
		return barbarism;
	}

	public void setBarbarism(String barbarism) {
		this.barbarism = barbarism;
	}

	public String getLoginIp() {
		return loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public long getExprieTime() {
		return exprieTime;
	}

	public void setExprieTime(long exprieTime) {
		this.exprieTime = exprieTime;
	}

	public String toString() {
		return account + "/" + loginIp + "/" + barbarism + "/" + exprieTime;
	}
}
